package cmdparse;

public class CommandParse {
	
	public static String[] cmdSplit(String cmd){
		String[] result = cmd.split("\\s");
		if(!result[0].equals("scp")||result.length!=3){
			return null;
		}
		return result;
	}
	
	public static String getFilename(String str){
		String[] result = str.split(":");
		return result[1];
	}
	
	
}
